package com.msb.thinkood.v1;

/**
 * author: xl
 * time: 2018/10/30 19:57
 * description:老司机
 **/
public class Driver {

     String name;

     public Driver(String name){
         this.name=name;
     }

     void driver(Car car,String addr){
         System.out.println("我是："+name);
         car.go(addr);
     }

     public String getName() {
        return name;
     }

    public void setName(String name) {
        this.name = name;
    }
}
